<?php
declare(strict_types=1);

namespace Zms\Res;

class Result
{
    private $state;
    private $message;
    private $data;


    public function __construct(
        bool   $state,
        string $message,
               $data = null
    )
    {
        $this->state = $state;
        $this->message = $message;
        $this->data = $data;
    }

    public function getState(): bool
    {
        return $this->state;
    }


    public function getMessage(): string
    {
        return $this->message;
    }


    public function getData()
    {
        return $this->data;
    }
}